package org.zdc.pivot.wtk;
import nme.geom.Rectangle;

class Bounds extends Rectangle
{

	public function new(x:Float = 0, y:Float = 0, width:Float = 0, height:Float = 0) 
	{
		super(x, y, width, height);
	}
	
	public function translate(dx:Float, dy:Float):Bounds {
		return new Bounds(dx, dy, width, height);
	}
	
	public static function fromRect(rect:Rectangle):Bounds {
		return new Bounds(rect.x, rect.y, rect.width, rect.height);
	}
}